﻿@model projecto_asp.Models.regra

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>regra</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.cod_regra)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.cod_regra)
            @Html.ValidationMessageFor(model => model.cod_regra)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.cod_curso, "curso")
        </div>
        <div class="editor-field">
            @Html.DropDownList("cod_curso", String.Empty)
            @Html.ValidationMessageFor(model => model.cod_curso)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.descricao)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.descricao)
            @Html.ValidationMessageFor(model => model.descricao)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.id_tipo_epoca, "tipo_epoca")
        </div>
        <div class="editor-field">
            @Html.DropDownList("id_tipo_epoca", String.Empty)
            @Html.ValidationMessageFor(model => model.id_tipo_epoca)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.data_limite)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.data_limite)
            @Html.ValidationMessageFor(model => model.data_limite)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ano_curricular)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ano_curricular)
            @Html.ValidationMessageFor(model => model.ano_curricular)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.avals_dia)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.avals_dia)
            @Html.ValidationMessageFor(model => model.avals_dia)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dias_entre_avals)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dias_entre_avals)
            @Html.ValidationMessageFor(model => model.dias_entre_avals)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.somatorio_peso)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.somatorio_peso)
            @Html.ValidationMessageFor(model => model.somatorio_peso)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.aplicada)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.aplicada)
            @Html.ValidationMessageFor(model => model.aplicada)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
